<?php
class Default_Form_User extends Zend_Form
{
	public function init()
	{
		$this->setName('Login');
		
     

        $username = new Zend_Form_Element_Text('username');
        $username->setLabel('Username')
               ->setRequired(true)
               ->addFilter('StripTags')
               ->addFilter('StringTrim')
               ->addValidator('NotEmpty');
             

        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('password')
              ->setRequired(true)
              ->addFilter('StripTags')
              ->addFilter('StringTrim')
              ->addValidator('NotEmpty');
		
             
              
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton')
        	   ->setLabel("Login");

        $this->addElements(array( $username, $password, $submit));
       
       //*********************************
		$this->clearDecorators();
        $this->addDecorator('FormElements')
             ->addDecorator('HtmlTag', array('tag' => 'ul', 'class' => 'contact-form'))
             ->addDecorator('Form');
       
        $this->setElementDecorators(array(
            array('ViewHelper'),
            array('Errors'),
            array('Description'),
            array('Label', array('separator'=>' ')),
            array('HtmlTag', array('tag' => 'li')),
        ));

      
        $submit->setDecorators(array(
            array('ViewHelper'),
            array('Description'),
            array('HtmlTag', array('tag' => 'li', 'class'=>'submit-group')),
        ));
 	
	}
}